Skip to main content

assetInfo

Type

property

Summary

Define how to access media assets

Syntax

set the assetInfo of <widget> to {<array>}
get the assetInfo of <widget>

Description

Currently how it works, is it looks for a control that has the property assetInfo and will then create the widget in the PI. assetInfo is an associative array with a few keys: asset:the asset value (generally left blank for a new widget) assetType:the type of asset (currently: "All,Images,Videos,Audio,Documents, Other" -- note: All, Other, and empty all show ALL assets) assetFilter:a filter of mime types to be applied on top of the type (e.g. image/jpeg) selectionType:current selection type of the widget (you can set this to whatever, but the users choice will override it) allowAssets:boolean of whether the user can select an asset from the asset library allowExternal:boolean of whether the user can select an external asset